package com.yunxin.core.domain.model.channel;

/**
 * @author zero°
 * @since 2023-07-12
 */
public interface ChannelPromotionLinkConfigRepository {

    /**
     * 保存渠道推广链接配置
     * @param channelPromotionLinkConfig channelPromotionLinkConfig
     * @return boolean
     */
    boolean saveChannelPromotionLinkConfig(ChannelPromotionLinkConfig channelPromotionLinkConfig);

    /**
     * 更新渠道推广链接配置
     * @param channelPromotionLinkConfig channelPromotionLinkConfig
     * @return boolean
     */
    boolean updateChannelPromotionLinkConfig(ChannelPromotionLinkConfig channelPromotionLinkConfig);

    /**
     * 根据渠道推广id获取数据
     * @param promotionId promotionId
     * @return ChannelPromotionLinkConfig
     */
    ChannelPromotionLinkConfig  getByPromotionId(Long promotionId);
}
